package democode.waitnotify.productconsume;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 3/1/2023 8:49 AM
 */
public class ConsumerThread extends Thread {

    private Consume consumer;

    public ConsumerThread(Consume consumer) {
        this.consumer = consumer;
    }

    @Override
    public void run() {
        while (true){
            consumer.getValue();
        }
    }
}